package com.ruoyi.common.core.domain.entity;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.ColumnType;
import com.ruoyi.common.annotation.Excel.Type;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.xss.Xss;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 用户对象 sys_user
 *
 * @author ruoyi
 */
@Data
public class SysFeeUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Excel(name = "id", cellType = ColumnType.NUMERIC, prompt = "id")
    private String id;


    /**
     * 用户ID
     */
    @Excel(name = "加密用户序号", cellType = ColumnType.NUMERIC, prompt = "加密用户序号")
    private String secretUserId;

    /**
     * 用户ID
     */
    @Excel(name = "用户序号", cellType = ColumnType.NUMERIC, prompt = "用户编号")
    private String userId;

    /**
     * 部门ID
     */
    @Excel(name = "部门编号", type = Type.IMPORT)
    private String deptId;

    /**
     * 用户账号
     */
    @Excel(name = "登录名称")
    private String userName;

    /**
     * 用户昵称
     */
    @Excel(name = "用户名称")
    private String address;


    public String getAddress()
    {
        return address;
    }

    public void setAddress
            (String email)
    {
        this.address = address;
    }

    /**
     * 用户邮箱
     */
    @Excel(name = "用户邮箱")
    private String year;

    /**
     * 用户邮箱
     */
    @Excel(name = "用户邮箱")
    private String month;

    /**
     * 手机号码
     */
    @Excel(name = "手机号码")
    private Double money;

    /**
     * 用户头像
     */
    private String userType;

    /**
     * 手机号码
     */
    @Excel(name = "手机号码")
    private Double waterCount;

    /**
     * 手机号码
     */
    @Excel(name = "手机号码")
    private Double waterMoney;

    /**
     * 用户头像
     */
    private String userCode;

    /**
     * 用户头像
     */
    private String waterCode;


    public SysFeeUser() {

    }

    public SysFeeUser(String userId) {
        this.userId = userId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }


    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }


    @Xss(message = "用户账号不能包含脚本字符")
    @NotBlank(message = "用户账号不能为空")
    @Size(min = 0, max = 30, message = "用户账号长度不能超过30个字符")
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("userId", getUserId())
                .append("deptId", getDeptId())
                .append("userName", getUserName())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
